import service from '@/utils/request';

// 获取活动
export const getAcitvity = (queryData: {}) => {
    return service({
        url: '/v0/activity/page',
        method: 'GET',
        params: queryData
    })
}

// 新增活动
export const addAcitvity = (formData: {}) => {
    return service({
        url: '/v0/activity/add',
        method: 'POST',
        data: formData
    })
}

// 修改活动
export const editAcitvity = (formData: {}) => {
    return service({
        url: '/v0/activity/edit',
        method: 'POST',
        data: formData
    })
}

// 删除活动
export const removeAcitvity = (id: number) => {
    return service({
        url: '/v0/activity/del',
        method: 'GET',
        params: {id}
    })
}


// 新增奖品
export const addJiang = (formData: {}) => {
    return service({
        url: 'v0/prizes/add',
        method: 'POST',
        data: formData
    })
}
